//
//  NewsType.m
//  news_ios_app
//
//  Created by 陈铖 on 16/3/24.
//  Copyright © 2016年 apple. All rights reserved.
//

#import "NewsType.h"

@implementation NewsType
+(instancetype)sharedDefault
{
    static NewsType *instance;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        instance = [[NewsType alloc]init];
    });
    return instance;
}

-(instancetype)init
{
    if (self = [super init]) {
        _typeArr = [NSMutableArray array];
        [self updateTypeArrar];
    }
    return self;
}

-(void)updateTypeArrar
{
    [self.typeArr addObject:@"国内频道"];
    [self.typeArr addObject:@"国际频道"];
    [self.typeArr addObject:@"科技频道"];
    [self.typeArr addObject:@"娱乐频道"];
    [self.typeArr addObject:@"教育频道"];
    [self.typeArr addObject:@"汽车频道"];
    [self.typeArr addObject:@"经济频道"];
}

+(NSMutableArray *)newsType
{
    NewsType *temp = [NewsType sharedDefault];
    return temp.typeArr;
}
@end
